<template>
	<view class="index">
		<view class="title">
			{{news.title}}
		</view>
		<view class="date">
			{{news.information}}
		</view>
		<view class="passage">
			<text>{{news.passage}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				news:""
			};
		},
		onLoad(Option) {
			console.log(Option);
			uni.request({
			    url: 'http://120.78.179.141:9876/data?pageID='+Option.pageID+"&newsID="+Option.newsID,
				method:"GET",
			    success: (res) => {
			        console.log(res.data);
					console.log('http://120.78.179.141:9876/data?pageID='+Option.pageID+"&newsID="+Option.newsID)
			        this.news = res.data.data[0];
			    },
				fail: (res) => {
					console.log(res.errMsg);
				}
			});
		}
	}
</script>

<style lang="scss">
.index{
	padding: 30rpx 50rpx;
	display: flex;
	flex-direction: column;
	.title{
		font-size: 40rpx;
		font-weight: bold;
		display: flex;
		flex-direction: row;
		justify-content: center;
	}
	.date{
		margin: 30rpx;
		color: #8d8d8e;
		display: flex;
		flex-direction: row;
		justify-content: center;
		font-size: 30rpx;
	}
	.passage{
		
	}
}
</style>
